Optimal. Leaf size=76 \[ -\frac {2 \sin (c+d x)}{a d}-\frac {\sin (c+d x) \cos ^2(c+d x)}{d (a \cos (c+d x)+a)}+\frac {3 \sin (c+d x) \cos (c+d x)}{2 a d}+\frac {3 x}{2 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 76, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2767, 2734} \[ -\frac {2 \sin (c+d x)}{a d}-\frac {\sin (c+d x) \cos ^2(c+d x)}{d (a \cos (c+d x)+a)}+\frac {3 \sin (c+d x) \cos (c+d x)}{2 a d}+\frac {3 x}{2 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2734
Rule 2767
Rubi steps
\begin {align*} \int \frac {\cos ^3(c+d x)}{a+a \cos (c+d x)} \, dx &=-\frac {\cos ^2(c+d x) \sin (c+d x)}{d (a+a \cos (c+d x))}-\frac {\int \cos (c+d x) (2 a-3 a \cos (c+d x)) \, dx}{a^2}\\ &=\frac {3 x}{2 a}-\frac {2 \sin (c+d x)}{a d}+\frac {3 \cos (c+d x) \sin (c+d x)}{2 a d}-\frac {\cos ^2(c+d x) \sin (c+d x)}{d (a+a \cos (c+d x))}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.23, size = 117, normalized size = 1.54 \[ \frac {\sec \left (\frac {c}{2}\right ) \sec \left (\frac {1}{2} (c+d x)\right ) \left (-4 \sin \left (c+\frac {d x}{2}\right )-3 \sin \left (c+\frac {3 d x}{2}\right )-3 \sin \left (2 c+\frac {3 d x}{2}\right )+\sin \left (2 c+\frac {5 d x}{2}\right )+\sin \left (3 c+\frac {5 d x}{2}\right )+12 d x \cos \left (c+\frac {d x}{2}\right )-20 \sin \left (\frac {d x}{2}\right )+12 d x \cos \left (\frac {d x}{2}\right )\right )}{16 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.17, size = 57, normalized size = 0.75 \[ \frac {3 \, d x \cos \left (d x + c\right ) + 3 \, d x + {\left (\cos \left (d x + c\right )^{2} - \cos \left (d x + c\right ) - 4\right )} \sin \left (d x + c\right )}{2 \, {\left (a d \cos \left (d x + c\right ) + a d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.36, size = 73, normalized size = 0.96 \[ \frac {\frac {3 \, {\left (d x + c\right )}}{a} - \frac {2 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{a} - \frac {2 \, {\left (3 \, \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} + \tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (\tan \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} + 1\right )}^{2} a}}{2 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 103, normalized size = 1.36 \[ -\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a d}-\frac {3 \left (\tan ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}-\frac {\tan \left (\frac {d x}{2}+\frac {c}{2}\right )}{a d \left (1+\tan ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )^{2}}+\frac {3 \arctan \left (\tan \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{a d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.33, size = 133, normalized size = 1.75 \[ -\frac {\frac {\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {3 \, \sin \left (d x + c\right )^{3}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{3}}}{a + \frac {2 \, a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}} + \frac {a \sin \left (d x + c\right )^{4}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{4}}} - \frac {3 \, \arctan \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1}\right )}{a} + \frac {\sin \left (d x + c\right )}{a {\left (\cos \left (d x + c\right ) + 1\right )}}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.41, size = 89, normalized size = 1.17 \[ -\frac {\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )-\frac {3\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (c+d\,x\right )}{2}+3\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )-2\,{\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4\,\sin \left (\frac {c}{2}+\frac {d\,x}{2}\right )}{a\,d\,\cos \left (\frac {c}{2}+\frac {d\,x}{2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 2.32, size = 325, normalized size = 4.28 \[ \begin {cases} \frac {3 d x \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2 a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 4 a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d} + \frac {6 d x \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2 a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 4 a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d} + \frac {3 d x}{2 a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 4 a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d} - \frac {2 \tan ^{5}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2 a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 4 a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d} - \frac {10 \tan ^{3}{\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2 a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 4 a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d} - \frac {4 \tan {\left (\frac {c}{2} + \frac {d x}{2} \right )}}{2 a d \tan ^{4}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 4 a d \tan ^{2}{\left (\frac {c}{2} + \frac {d x}{2} \right )} + 2 a d} & \text {for}\: d \neq 0 \\\frac {x \cos ^{3}{\relax (c )}}{a \cos {\relax (c )} + a} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________